// 自动生成模板EmailINBOX
package emailBox

import (
	"github.com/flipped-aurora/gin-vue-admin/server/global"
	"time"
)

// EmailINBOX 结构体
type EmailINBOX struct {
	global.GVA_MODEL
	EmailId          *int       `json:"emailId" form:"emailId" gorm:"column:email_id;comment:邮件id;size:10;"`
	EmailSubject     string     `json:"emailSubject" form:"emailSubject" gorm:"column:email_subject;comment:主题;size:255;"`
	EmailFrom        string     `json:"emailFrom" form:"emailFrom" gorm:"column:email_from;comment:发信人;size:255;"`
	EmailTo          string     `json:"emailTo" form:"emailTo" gorm:"column:email_to;comment:收信人;size:255;"`
	EmailDate        *time.Time `json:"emailDate" form:"emailDate" gorm:"column:email_date;comment:时间;"`
	EmailContentText string     `json:"emailContentText" form:"emailContentText" gorm:"column:email_content_text;comment:内容文本;size:4294967295;"`
	EmailContentHtml string     `json:"emailContentHtml" form:"emailContentHtml" gorm:"column:email_content_html;comment:html格式;size:4294967295;"`
	Attachment       string     `json:"attachment" form:"attachment" gorm:"column:attachment;comment:附件;size:255;"`
	Auth             string     `json:"auth" form:"auth" gorm:"column:auth;comment:用户;size:255;"`
	Status           *int       `json:"status" form:"status" gorm:"column:status;comment:状态;size:10;"`
}

// TableName EmailINBOX 表名
func (EmailINBOX) TableName() string {
	return "email_INBOX"
}
